package cxl_zh.model;

import cxl_zh.utils.Convert;


public class FileInfo {

    public String fileName;

    public String filePath;

    public long fileSize;

    public String date;
    
    public String size;
    
    public boolean IsDir;

    public int Count;

    public long ModifiedDate;

    public boolean Selected;

    public boolean canRead;

    public boolean canWrite;

    public boolean isHidden;

    public long dbId; // id in the database, if is from database
    
    public int icon;
    
    public void setDate(long modifiedDate){
    	date = Convert.convertTime(modifiedDate);
    }
    
    public void setSize(long fileSize){
    	size = Convert.convertStorage(fileSize);
    }

	@Override
	public String toString() {
		return "FileInfo [fileName=" + fileName + ", filePath=" + filePath
				+ ", fileSize=" + fileSize + "]";
	}

    
}
